package com.ruoyi.shopping.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.shopping.domain.CommodityOrder;

/**
 * 商品订单Mapper接口
 * 
 * @author lfm
 * @date 2024-08-14
 */
public interface CommodityOrderMapper extends BaseMapper<CommodityOrder>
{
    /**
     * 查询商品订单
     * 
     * @param id 商品订单主键
     * @return 商品订单
     */
    public CommodityOrder selectCommodityOrderById(Long id);

    /**
     * 查询商品订单列表
     * 
     * @param commodityOrder 商品订单
     * @return 商品订单集合
     */
    public List<CommodityOrder> selectCommodityOrderList(CommodityOrder commodityOrder);

    /**
     * 新增商品订单
     * 
     * @param commodityOrder 商品订单
     * @return 结果
     */
    public int insertCommodityOrder(CommodityOrder commodityOrder);

    /**
     * 修改商品订单
     * 
     * @param commodityOrder 商品订单
     * @return 结果
     */
    public int updateCommodityOrder(CommodityOrder commodityOrder);

    /**
     * 删除商品订单
     * 
     * @param id 商品订单主键
     * @return 结果
     */
    public int deleteCommodityOrderById(Long id);

    /**
     * 批量删除商品订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCommodityOrderByIds(Long[] ids);

    public List<CommodityOrder> selectCommodityOrderBycargoUserId(CommodityOrder commodityOrder);
}
